package com.lemon.cloud.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lemon.cloud.datascope.annotation.DataColumn;
import com.lemon.cloud.datascope.annotation.DataScope;
import com.lemon.cloud.datascope.enums.ScopeType;
import com.lemon.cloud.comm.po.SysOrg;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysOrgMapper extends BaseMapper<SysOrg> {

    List<SysOrg> selectByUserId(@Param("userId") Long userId);

    List<SysOrg> getDataScopeOrg();

    void addOrg(@Param("org") SysOrg org);

}
